<!DOCTYPE html>
<!--[if IE 8]>
<html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="UTF-8">
    <title>组织结构管理</title>
    [#include "../../../include/header.ftl" /]
    <link rel="stylesheet" href="${ctx}/static/js/jquery-treegrid/css/jquery.treegrid.css">
    <link href="${ctx}/static/js/chosen/bootstrap-chosen.css" rel="stylesheet">
    <script type="text/javascript" src="${ctx}/static/js/jquery-treegrid/js/jquery.treegrid.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/jquery-treegrid/js/jquery.treegrid.bootstrap3.js"></script>
    <script type="text/javascript"
            src="${ctx}/static/js/jquery-treegrid/extension/jquery.treegrid.extension.js"></script>
    <script type="text/javascript"
            src="${ctx}/static/apls/assets/plugins/jquery-validation/jquery.validate.min.js"></script>
    <script type="text/javascript"
            src="${ctx}/static/apls/assets/plugins/jquery-validation/localization/messages_zh.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/apls/assets/plugins/jquery-validation/validateEx.js"></script>
    <style type="text/css">
        .panel-body {
            padding: 0px 15px;
        }
        .treeContent {
            background-color: #ffffff;
            overflow: auto;
            border: 1px solid #95B8E7;
            z-index: 9999999999999999999;
            margin-left: -1px;
        }
    </style>
</head>

<body class="my-gp my-p5">
<div class="search_cos">
    <form method="post" id="form_search" class="form-horizontal">
        <div class="col-sm-12">
            <div class="row">
                <div class="col-sm-3">
                    <div class="form-group margin-bottom-0">
                        <label for="s_name" class="full-left control-label" style="width: 80px">机构名称：</label>
                        <div class="full-left">
                            <input class="form-control" type="text" name="s_name" id="s_name"/>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3">
                    <button type="submit" id="but" class="btn btn-primary">
                        <i class="fa fa-search"></i> 查询
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="select_table col-md-12 col-sm-12">
    <div class="row">
        <div class="margin-bottom-0">
            <div class="panel-body">
                <table id="table1" style="border: 0px" data-mobile-responsive="true" data-click-to-select="true">

                </table>
            </div>
        </div>
    </div>
</div>
<div id="orgopt" style="display: none;height: 100%">
    <div class="form-body">
        <form role="form" class="form-horizontal" id="form_opt">
            <div class="col-md-12 col-sm-12">
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-3 control-label">上级部门</label>
                            <div class="col-md-9">
                                <div class="input-icon right">
                                    <div class="input-icon right">
                                        <div class="chosen-container chosen-container-single chosen-container-single-nosearch "
                                             title=""
                                             id="parentId_chosen" style="width: 100%;"><a class="chosen-single">
                                            <span></span>
                                            <div><b></b></div>
                                        </a>
                                        </div>
                                        <input type="hidden" name="pid" data-type="rep" id="pid" class="form-control"
                                               placeholder="">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <input id="id" name="id" type="hidden">
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-3 control-label">部门名称</label>
                            <div class="col-md-9">
                                <div class="input-icon right">
                                    <input data-type="rep" type="text" id="orgName" name="orgName"
                                           class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-3 control-label">部门编码</label>
                            <div class="col-md-9">
                                <div class="input-icon right">
                                    <input data-type="rep" type="text" id="orgCode" name="orgCode"
                                           class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-3 control-label">部门排序</label>
                            <div class="col-md-9">
                                <div class="input-icon right">
                                    <input data-type="rep" value="10" type="number" id="orgSort" name="orgSort"
                                           class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </form>
    </div>
</div>
<div id="table1Toolbar">
    <div class="grid-btn">
        <a class="btn btn-primary" id="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        <a class="btn btn-primary" id="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
        <a class="btn btn-primary" id="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        <a class="btn btn-primary" id="exp"><i class="fa fa-trash-o"></i>&nbsp;展开/折叠</a>
    </div>
</div>
<div id="treeContent" class="treeContent" style="display:none;height: 210px;overflow: auto; position: absolute;">
    <ul id="funtree1" class="ztree" style="margin-top:0; width:226px;"></ul>
</div>
<script type="text/javascript" src="${ctx}/static/js/adx/sys/org.js?v=0.7"></script>
</body>

</html>